package com.coldlz.mmp.common;

import cn.hutool.core.io.FileUtil;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class CheckRunningEnvRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        if (!FileUtil.isWindows()) {
            throw new RuntimeException("目前只能够运行在Windows环境上");
        }
    }
}
